package cn.xiyue.production.ui;

import android.os.Bundle;

import cn.xiyue.production.R;
import cn.xiyue.production.base.CallableActivity;
import cn.xiyue.production.bean.Car;

public class ProblemCarActivity extends CallableActivity {

    private SmartTableView stb_problem;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_problem_car);
        initView();
    }

    private void initView() {
        stb_problem = (SmartTableView) findViewById(R.id.stb_problem);
        async(requestApi.getAllCar(),value -> stb_problem.setData(value.getData(), Car.class));
    }
}